﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using leviathan.supervisor;

namespace leviathan_rpg
{
    public partial class characterGeneration : Form
    {
        Supervisor Felugyelo;

        public characterGeneration(Supervisor supv)
        {
            InitializeComponent();
            Felugyelo = supv;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string str = textBox1.Text;
            string str2 = comboBox1.Text;
            string str3 = comboBox2.Text;
            if ("" == str || "" == str2)
            {
                MessageBox.Show("Hibás Karakternév, típus vagy faj", "Hiba!");
                return;
            }
            Felugyelo.newCharacter(str, str2, str3);

            this.SendToBack();
            this.Close();
        }

        private void characterGeneration_Load(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
